import api from './index'
import request from '@/utils/request'

// 注册
export function registry(data) {
  return request.post(api.Registry, data)
}

// 登录
export function login(data) {
  return request({
    url: api.Login,
    method: 'post',
    data
  })
}

// 获取验证码
export function getCaptcha(params) {
  return request.get(api.Captcha, {
    params,
    hideloading: true
  })
}

export function checkCaptcha(params) {
  return request.get(api.CheckCaptcha, {
    params,
    hideloading: true
  })
}

